#include "junix.h"

int
main(int argc, char **argv)
{
  printf("real uid: %d\n",getuid());
  printf("real gid: %d\n\n",getgid());
  printf("effective uid: %d\n",geteuid());
  printf("effective gid: %d\n",getegid());

  uid_t t = getuid();
  setuid(1000);  
  if(system("touch /JUNIXMMM") )
    err_quit("system error");
  setuid(t);
  exit(0);
}

